<!DOCTYPE HTML>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
		<meta name="format-detection" content="telephone=no,email=no,date=no,aItemress=no">
		<title>选择支付方式</title>
		<link rel="stylesheet" type="text/css" href="../../css/aui.css" />
		<link rel="stylesheet" type="text/css" href="../../css/app.css" />
		<style type="text/css">
			/*.aui-title {
				font-size    :.9rem;
				font-weight  :400;
				font-family  :PingFangSC-Regular;
			}*/
			.aui-title>div {
				font-size:.9rem;
				font-family:PingFangSC-Regular;
				font-weight:400;
				color:rgba(34,34,34,1);

			}

		</style>
	</head>

	<body>
		<div id="aui-header" class="ming-bg-blue">
			<header class="aui-bar aui-bar-nav ming-bg-blue aui-border-b">
				<a class="aui-pull-left" tapmode onclick="close_win()" style="padding-left:.75rem;">
					<img class="btn-img-back" src="../../image/btn/btn-back.png" />
				</a>
				<div class="aui-title">
					<div class="aui-text-linear" style="color: #fff;">
						选择支付方式
					</div>
				</div>
			</header>
		</div>

	</body>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/common.js"></script>
	<script type="text/javascript" src="../../script/aui-dialog.js"></script>
	<script>
		apiready = function() {
			$api.fixStatusBar($api.byId('aui-header'))
			open_frame('payment_recharge_f', 'payment_recharge_f.html', 'aui-header', false)
		};

		function loginOut() {
			var dialogBox = api.require('dialogBox');
			dialogBox.alert({
				texts: {
					title: '确定要放弃付款吗？',
					content: '订单会保留一段时间，请尽快支付。',
					leftBtnTitle: '确认离开',
					rightBtnTitle: '继续支付'
				},
				styles: {
					bg: '#fff',
					w: 295,
					corner: 10,
					title: {
						marginT: 20,
						titleSize: 17,
						titleColor: '#444444'
					},
					content: {
						marginT: 18,
						marginB: 30,
						color: '#444444',
						size: 17
					},
					left: {
						marginB: 0,
						marginL: 0,
						w: 147.5,
						h: 55,
						corner: 10,
						// bg: 'widget://image/ico/ico_btn_left_bg.png',
						bg: "#fff",
						color: '#999999',
						size: 16
					},
					right: {
						marginB: 0,
						marginL: 0,
						w: 147.5,
						h: 55,
						corner: 10,
						bg: '#fff',
						color: '#005A93',
						size: 16
					},
					horizontalLine: {
						color: '#EEEEEE',
						height: 1
					},
					verticalLine: {
						color: '#EEEEEE', //（可选项）字符串类型；左右按钮中间竖线的颜色，支持rgb、rgba、#；默认：'rgba(245,245,245,0)'
						width: 1 //（可选项）数字类型；左右边按钮竖线的高度；默认：0
					}
				}
			}, function(ret) {
				if (ret.eventType == 'right') {
					var dialogBox = api.require('dialogBox');
					dialogBox.close({
						dialogName: 'alert'
					});
				}

				if (ret.eventType == 'left') {
					var dialogBox = api.require('dialogBox');
					dialogBox.close({
						dialogName: 'alert'
					});

					// $api.rmStorage('token')
					// $api.rmStorage('userinfo')
					// send_event('loginout')
					close_win();
					//vm.shadow = false;
					setTimeout(function() {
						close_win()
					}, 1000)


				}
			});
		}
	</script>

</html>
